@extends('Home.price.layout')
@section('con')
<div class="w">
	<div class="adArea">
		
	</div>
	<div class="place">
	    <span class="l g9">当前位置：</span> <a href="{{url('home')}}">首页</a><em>></em>
	    <a href="@yeild('url')">价格</a>
	</div>
	<!-- 产地价格 -->
	<div class="f f1">
	    <div class="f_title"><a href="{{url('/home/price/more',['from' => 3])}}s">1F 产地价格</a></div>
	    <div class="clf priceIndexUnit">
	        <div class="l priceIndexTableBox">

	            <div class="priceTableBox">
	                <div class="priceTable">
	                    <div class="clf lh40">
	                        <a href="{{url('/home/price/more',['from' => 3])}}" class="r mr15">查看更多</a>
	                        <span class="f18 yahei pl10">价格变动</span>
	                    </div>
	                    <div class="listTH">
	                        <div class="w1">品名</div>
	                        <div class="w2"><div>规格</div></div>
	                        <div class="w9"><div>产地</div></div>
	                        <div class="w3"><div>价格(元)</div></div>
	                        <div class="w4">走势</div>
	                        <div class="w5"><div>周涨跌</div></div>
	                        <div class="w8">价格图</div>
	                    </div>
	                    <ul class="priceTableRows">
	                    		@foreach($prices as $k => $v)
	                          		@if($k % 2 != 0)
	                          		<li class="cq">
	                          		@else
	                          		<li class="">
	                          		@endif
	                                    <span class="w1"><a href="http://www.zyctd.com/jh917.html" title="{{$v -> mName}}" target="_blank">{{$v -> mName}}</a></span>
	                                    <span class="w2"><a href="http://www.zyctd.com/jiage/xq917.html" title="{{$v -> size}}" target="_blank">{{$v -> size}}</a></span>
	                                    <span class="w9" title="{{$v -> from}}">{{$v -> from}}</span>
	                                    <span class="w3">{{$v -> fromprice}}</span>
	                                    <span class="w4">{{$v -> trend}}</span>
	                                    <span class="w5"><em class="">0%</em></span>
	                                    <span class="w8"><a href="http://www.zyctd.com/jiage/xq917.html" title="{{$v -> mName}}" target="_blank"><img src="/bootcss/home/Picture/icon_chart.gif"></a></span>
	                                </li>
	                            @endforeach
                        </ul>
	                </div>
	            </div>
	        </div>
	        <!-- 涨跌榜 -->
	        <div class="pricebox priceIndexbox  r">
	        	<div></div>
	            <ul class="door" id="fromPrice">
	                <li class="fromup" style="background:white;"><a href="javascript:void 0;" >综合200月涨幅榜</a></li>
	                <li class="fromdown"><a href="javascript:void 0;">综合200月跌幅榜</a></li>
	            </ul>
	            <div id="fromPriceCon">
	            	<!-- 涨 -->
	                <div class="priceroom fromup">
	                    <ul class="changeBreed">
	                        <li class="breedTh">
	                            <span class="w1" style="background:none;">排名</span><span class="w2">品种</span><span class="w3">规格</span><span class="w4">产地</span><span class="w5">价格（元）</span><span class="w5">涨幅</span>
	                        </li>
	                        @foreach($up as $uk => $uv)
	                          	<li>
	                    		
		                            @if($uk+1 <= 3)
		                                <span class="w1 top{{$uk+1}}">{{$uk+1}}</span>
		                            @else
		                            	<span class="w1">{{$uk+1}}</span>
		                            @endif
	                        	
	                                <span class="w2"><a href="{{url('/home/varieties/list',['name' => $uv -> mName])}}" title="{{$uv -> mName}}" target="_blank">{{$uv -> mName}}</a></span>
	                                <span class="w3">{{$uv -> size}}</span>
	                                <span class="w5"><em>{{$uv -> from}}</em></span>
	                                <span class="w4" title="{{$uv -> from}}">{{$uv -> fromprice}}</span>
	                                <span class="w5"><em class="up">{{$uv -> year}}</em></span>
	                            </li>
	                        @endforeach
	                    </ul>
	                </div>
	                <!-- 跌 -->
	                <div class="priceroom none fromdown" style="display:none">
	                    <ul class="changeBreed">
	                        <li class="breedTh">
	                            <span class="w1" style="background:none;">排名</span><span class="w2">品种</span><span class="w3">规格</span><span class="w4">产地</span><span class="w5">价格（元）</span><span class="w5">跌幅</span>
	                        </li>
	                        @foreach($down as $dk => $dv)
	                          	<li>
	                    		
		                            @if($dk+1 <= 3)
		                                <span class="w1 top{{$dk+1}}">{{$dk+1}}</span>
		                            @else
		                            	<span class="w1">{{$dk+1}}</span>
		                            @endif
	                        	
	                                <span class="w2"><a href="{{url('/home/varieties/list',['name' => $dv -> mName])}}" title="{{$dv -> mName}}" target="_blank">{{$dv -> mName}}</a></span>
	                                <span class="w3">{{$dv -> size}}</span>
	                                <span class="w5"><em>{{$dv -> from}}</em></span>
	                                <span class="w4" title="{{$dv -> from}}">{{$dv -> fromprice}}</span>
	                                <span class="w5"><em class="down">{{$dv -> year}}</em></span>
	                            </li>
	                        @endforeach
	                    </ul>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
	<!-- 市场价格 -->
	<div class="f f2">
	    <div class="f_title"><a href="{{url('/home/price/more',['from' => 1,'market' => 3])}}">2F 市场价格</a></div>
	    <div class="clf priceIndexUnit">
	        <div class="l priceIndexTableBox">

	            <div class="priceTableBox">
	                <div class="priceTable">
	                    <div class="clf lh40">
	                        <a href="{{url('/home/price/more',['from' => 1,'market' => 3])}}" class="r mr15">查看更多</a>
	                        <span class="f18 yahei pl10">价格变动</span>
	                    </div>
	                    <div class="listTH">
	                        <div class="w1">品名</div>
	                        <div class="w2"><div>规格</div></div>
	                        <div class="w9"><div>市场</div></div>
	                        <div class="w3"><div>价格(元)</div></div>
	                        <div class="w4">走势</div>
	                        <div class="w5"><div>周涨跌</div></div>
	                        <div class="w8">价格图</div>
	                    </div>
	                    <ul class="priceTableRows">
	                            @foreach($prices as $mk => $mv)	
	                            	@if($mk % 2 != 0)
	                          		<li class="cq">
	                          		@else
	                          		<li class="">
	                          		@endif
	                                    <span class="w1"><a href="http://www.zyctd.com/jh1777.html" title="{{$mv -> mName}}" target="_blank">{{$mv -> mName}}</a></span>
	                                    <span class="w2"><a href="http://www.zyctd.com/jiage/xq1777.html" title="{{$mv -> size}}" target="_blank">{{$mv -> size}}</a></span>
	                                    <span class="w9" title="{{$v -> market}}">{{$mv -> market}}</span>
	                                    <span class="w3">{{$mv -> marketprice}}</span>
	                                    <span class="w4">{{$mv -> trend}}</span>
	                                    <span class="w5"><em class="">0%</em></span>
	                                    <span class="w8"><a href="http://www.zyctd.com/jiage/xq1777.html" title="{{$mv -> mName}}" target="_blank"><img src="/bootcss/home/Picture/icon_chart.gif"></a></span>
	                                </li>
	                            @endforeach
	                    </ul>
	                </div>
	            </div>
	        </div>
	        <!-- 涨跌榜 -->
	        <div class="pricebox priceIndexbox  r">
	            <ul class="door" id="marketPrice">
	                <li class="hover"><a href="javascript:void 0;" >综合200月涨幅榜</a></li>
	                <li class="marketdown"><a href="javascript:void 0;">综合200月跌幅榜</a></li>
	            </ul>
	            <div id="marketPriceCon">
	            	<!-- 涨 -->
	                <div class="priceroom marketup">
	                    <ul class="changeBreed">
	                        <li class="breedTh">
	                            <span class="w1" style="background:none;">排名</span><span class="w2">品种</span><span class="w3">规格</span><span class="w4">市场</span><span class="w5">价格（元）</span><span class="w5">涨幅</span>
	                        </li>
							@foreach($up as $mk => $mv)
	                            <li class="">
	                            @if($mk+1 <= 3)
	                                <span class="w1 top{{$mk+1}}">{{$mk+1}}</span>
	                            @else
	                            	<span class="w1">{{$mk+1}}</span>
	                            @endif
	                                <span class="w2"><a href="{{url('/home/varieties/list',['name' => $mv -> mName])}}" title="{{$mv -> mName}}" target="_blank">{{$mv -> mName}}</a></span>
	                                <span class="w3">{{$mv -> size}}</span>
	                                <span class="w4" title="{{$mv -> market}}">{{$mv -> market}}</span><span class="w5"><em>{{$mv -> marketprice}}</em></span>
	                                <span class="w5"><em class="up">{{$mv -> year}}</em></span>
	                            </li>
	                        @endforeach
	                        
	                    </ul>
	                </div>
	                <!-- 跌 -->
	                <div class="priceroom none marketdown" style="display:none">
	                    <ul class="changeBreed">
	                        <li class="breedTh">
	                            <span class="w1" style="background:none;">排名</span><span class="w2">品种</span><span class="w3">规格</span><span class="w4">市场</span><span class="w5">价格（元）</span><span class="w5">跌幅</span>
	                        </li>
	                        @foreach($down as $mk => $mv)
	                            <li class="">
	                            @if($mk+1 <= 3)
	                                <span class="w1 top{{$mk+1}}">{{$mk+1}}</span>
	                            @else
	                            	<span class="w1">{{$mk+1}}</span>
	                            @endif
	                                <span class="w2"><a href="{{url('/home/varieties/list',['name' => $mv -> mName])}}" title="{{$mv -> mName}}" target="_blank">{{$mv -> mName}}</a></span>
	                                <span class="w3">{{$mv -> size}}</span>
	                                <span class="w4" title="{{$mv -> market}}">{{$mv -> market}}</span><span class="w5"><em>{{$mv -> marketprice}}</em></span>
	                                <span class="w5"><em class="down">{{$mv -> year}}</em></span>
	                            </li>
	                        @endforeach
	                       	
	                    </ul>
	                </div>
	            </div>
	        </div>
	    </div>
	</div>

	<!-- 电商价格 -->
    <div class="f f3">
        <div class="f_title"><a href="{{url('/home/price/store')}}">3F 电商价格</a></div>
        <div class="clf priceIndexUnit">
            <div class="l priceIndexTableBox">

        <div class="priceTableBox">
            <div class="priceTable">
                <div class="clf lh40">
                    <a href="{{url('/home/price/store')}}" class="r mr15">查看更多</a>
                    <span class="f18 yahei pl10">价格变动</span>
                </div>
                <div class="listTH">
                    <div class="w1">品名</div>
                    <div class="w2"><div>规格</div></div>
                    <div class="w9"><div>产地</div></div>
                    <div class="w3"><div>价格(元)</div></div>
                    <div class="w4">店铺</div>
                    <div class="w8">详情</div>
                </div>
                <ul class="priceTableRows">
                @foreach($stores as $sk => $sv)
                    @if($sk % 2 != 0)
              		<li class="cq">
              		@else
              		<li class="">
              		@endif
                        <span class="w1"><a href="http://www.zyccst.com/yaocai-597.html" title="乌药" target="_blank">{{$sv -> name}}</a></span>
                        <span class="w2"><a href="http://www.zyccst.com/zhongyao-597-817169-202974.html" title="乌药圆片选片1.0以上" target="_blank">乌药圆片选片1.0以上</a></span>
                        <span class="w9" title="江西省">{{$sv -> mAddress}}</span>
                        <span class="w3">{{$sv -> price}}</span>
                        <span class="w4"><a href="http://shop817169.zyccst.com" target="_blank" title="万信药业">万信药业</a></span>
                        <span class="w8"><a href="http://www.zyccst.com/zhongyao-597-817169-202974.html" target="_blank">详情</a></span>
                    </li> 
                @endforeach  
                </ul>
            </div>
        </div>
    </div>
	<!-- 成交榜 -->
	<div class="pricebox priceIndexbox  r">
	    <ul class="door" id="topPrice">
	        <li class="hover"><a href="javascript:void 0;" target="_blank">成交榜</a></li>
	    </ul>
	    <div id="topPriceCon">
	        <div class="priceroom">
	            <ul class="changeBreed">
	                <li class="breedTh">
	                    <span class="w1" style="background:none;">排名</span><span class="w2">品种</span><span class="w3">规格</span><span class="w4">产地</span><span class="w5">价格（元）</span><span class="w5">成交量</span>
	                </li>
					@foreach($sales as $k => $v)
	                    <li>
	                    @if($k+1 <= 3)
	                        <span class="w1 top{{$k+1}}">{{$k+1}}</span>
	                    @else
							<span class="w1">{{$k+1}}</span>
	                    @endif
	                        <span class="w2"><a href="http://pubsvr.zyccst.com/Statistics/pop.aspx?fromid=257&amp;url=http://www.zyccst.com/yaocai-486.html" title="三七" target="_blank">{{$v -> name}}</a></span>
	                        <span class="w3"><a href="http://pubsvr.zyccst.com/Statistics/pop.aspx?fromid=257&amp;url=http://www.zyccst.com/zhongyao-486-245790-91590.html" title="三七60头" target="_blank">三七60头</a></span>
	                        <span class="w4" title="云南省文山壮族苗族自治州文山县">{{$v -> mAddress}}</span>
	                        <span class="w5"><em class="">{{$v -> price}}</em></span>
	                        <span class="w5"><em class="up">{{$v -> sales}}</em></span>
	                    </li>
	                @endforeach
	            </ul>
	        </div>
	    </div>
	</div>
</div>


    <div class="adArea pb20">
            
            



    </div>
</div>
    
</div>

<script type="text/javascript" src="/bootcss/home/Scripts/jquery-1.8.3.min.js"></script>
<!-- 产地价格涨跌榜 -->
<script type="text/javascript">
	
	$(".fromdown").mouseover(function(){
		// $(this).css('background','#fff');
		$("#fromPrice li:nth-child(2)").css('background','#fff');
		$("#fromPrice li:nth-child(1)").css('background','#f5f5f5');
		$("#fromPriceCon div:first-child").css('display','none');
		$("#fromPriceCon div:last-child").css('display','block');
	});
	$(".fromdown").mouseout(function(){
		// $(this).css('background','#f5f5f5');
		$("#fromPrice li:nth-child(2)").css('background','#f5f5f5');
		$("#fromPrice li:nth-child(1)").css('background','#fff');
		$("#fromPriceCon div:first-child").css('display','block');
		$("#fromPriceCon div:last-child").css('display','none');		
	});
</script>
<!-- 市场价格涨跌榜 -->
<script type="text/javascript">
	//鼠标移入事件
	$(".marketdown").mouseover(function(){
		// alert('dsds');	
		$("#marketPrice li:nth-child(2)").css('background','#fff');
		$("#marketPrice li:nth-child(1)").css('background','#f5f5f5');
		$("#marketPriceCon div:first-child").css('display','none');
		$("#marketPriceCon div:nth-child(2)").css('display','block');

	});

	//鼠标移出事件
	$(".marketdown").mouseout(function(){
		$("#marketPrice li:nth-child(2)").css('background','#f5f5f5');
		$("#marketPrice li:nth-child(1)").css('background','#fff');
		$("#marketPriceCon div:first-child").css('display','block');
		$("#marketPriceCon div:nth-child(2)").css('display','none');
	});
</script>

<!-- 电商销量榜 -->
<script type="text/javascript">
	

</script>
@endsection